package com.itheima.service.impl;

import com.itheima.mapper.KsClassMapper;
import com.itheima.pojo.KsClass;
import com.itheima.service.KsClassService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KsClassServiceImpl implements KsClassService {

    @Autowired
    private KsClassMapper ksClassMapper;

    @Override
    public List<KsClass> findAll() {
        return ksClassMapper.findAll();
    }

    @Override
    public List<KsClass> findClassByMobile(String mobile) {
        return ksClassMapper.findClassByMobile(mobile);
    }
}
